package com.gobrs.async.test.sence;

import com.gobrs.async.core.GobrsAsync;
import com.gobrs.async.test.GobrsAsyncTestApplication;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.HashMap;
import java.util.Map;

/**
 * A -> B,C,D
 */
@SpringBootTest(classes = GobrsAsyncTestApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class CaseOne {

    @Autowired(required = false)
    private GobrsAsync gobrsAsync;

    @Test
    public void caseOne() {
        Map<String, Object> params = new HashMap<>();
        gobrsAsync.go("caseOne", () -> params);
    }

}